﻿using PMS.Domain.Seedwork;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace PMS.Domain.AggregatesModel.MessaeAggregate
{
    public interface IMessageCenterRepository: IRepository<MessageCenter>
    {
        /// <summary>
        /// 获取一个消息详情
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<MessageCenter> GetMessageByIdAsync(int id);

        /// <summary>
        /// 创建消息
        /// </summary>
        /// <param name="messageCenter"></param>
        /// <returns></returns>
        Task CreateAsync(MessageCenter messageCenter);


        /// <summary>
        /// 更新消息
        /// </summary>
        /// <param name="messageCenter"></param>
        void Update(MessageCenter messageCenter);
    }
}
